package com.ellwood.copyright.modules.system.convert;

import com.ellwood.copyright.infrastructure.system.entity.SysUserEntity;
import com.ellwood.copyright.infrastructure.system.vo.SysUserDataVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ProjectName: ell-copyright-pro
 * @PackageName: com.ellwood.copyright.modules.system.convert
 * @ClassName: SysUserConvert
 * @Description: // 用户管理
 * @Author: Ellwood
 * @CreateDate: 2024/11/22 - 13:33
 * @Version: V1.0.0
 */
@Mapper
public interface SysUserConvert {

    SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

    SysUserDataVO convert(SysUserEntity user);

    SysUserEntity convert(SysUserDataVO vo);

    List<SysUserDataVO> converList(List<SysUserEntity> users) ;

    List<SysUserEntity> convertList(List<SysUserDataVO> vos);

}
